#!/usr/bin/env python
import bootstrap
import urlparse

from core.models import Link


links = open('fixture.csv', 'r')
all_links = []

for line in links.readlines():
	link_string = line.strip()
	
	if link_string not in all_links:
		all_links.append(link_string)
 
		link = Link()
		
		link.title = "Link for test"
		link.link = link_string
		link.screenshot = False
		link.dump = True
		link.fullcheck = False
		
		link.save()

